# coding=utf-8
# Date: 2021/8/28 20:32
from typing import List


class Solution:
    def runningSum(self, nums: List[int]) -> List[int]:
        for i in range(1, len(nums)):
            nums[i] += nums[i - 1]
        return nums


if __name__ == "__main__":
    print(Solution().runningSum([1, 2, 3, 4]))
